import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity('TB_DPChangeSample_Detail')
export class TB_DPChangeSample_Detail {
  
  @PrimaryGeneratedColumn()
  OBJID: number;

  @Column({ type: 'integer', default: 0 })
  CHID: number;

  @Column({ type: 'text', nullable: true })
  NameA: string;

  @Column({ type: 'text', nullable: true })
  NameB: string;

  @Column({ type: 'text', nullable: true })
  NameL: string;

  // 修改 CreateTime 字段类型为 DATETIME
  @Column({ type: 'datetime', default: () => "CURRENT_TIMESTAMP" })
  CreateTime: Date;
}
 